

{template 'common/header'}
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>

<div class="panel panel-success">
  		<div class="panel-heading">主站信息设置</div>
	</div>
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
		
			<div class="panel-body">
		
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">主站标题</label>
				<div class="col-sm-8">
					<input type="text" name="title" class="form-control" value="{$info['title']}" />
					<span class="help-block"></span>
				</div>
			</div>	
				
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">收到答案的关键词</label>
				<div class="col-sm-8">
					<input type="text" name="copyright" class="form-control" value="{$info['copyright']}" /> 
					<span class="help-block" style="color:red">回复收到答案的关键词</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">试卷份数</label>
				<div class="col-sm-2">
					<input type="number" name="total" class="form-control" value="{$info['total']}" /> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">每份题数</label>
				<div class="col-sm-2">
					<input type="number" name="tnum" class="form-control" value="{$info['tnum']}" /> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">每天最多答题次数</label>
				<div class="col-sm-2">
					<input type="number" name="dtnum" class="form-control" value="{$info['dtnum']}" /> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">答题用时</label>
				<div class="col-sm-2">
					<input type="number" name="duration" class="form-control" value="{$info['duration']}" /> 
				</div>
				<span class="help-block">*单位分钟</span>
			</div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">0分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope11" class="form-control span7" placeholder="" name="score_scope11" value="{$info['score_scope11']}">
		        </div>
		        <span class="help-block" style="color:red">例如：XXX出题，我得了分，天天玩手机仍然答不好</span>
		        
		    </div>
		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope12" class="form-control span7" placeholder="" name="score_scope12" value="{$info['score_scope12']}">
		        </div>
		        <span class="help-block" style="color:red">这套题。你来试试？（中间空出分数，自动生成）</span>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise1" class="form-control span7" placeholder="" name="praise1" value="{$info['praise1']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">跳转链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="link" class="form-control span7" placeholder="" name="link" value="{$info['link']}">
			        <span class="help-block" style="color:red">可跳转到其他抽奖平台</span>
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">1~40分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope21" class="form-control span7" placeholder="" name="score_scope21" value="{$info['score_scope21']}">
		        </div>
		        
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope22" class="form-control span7" placeholder="" name="score_scope22" value="{$info['score_scope22']}">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise2" class="form-control span7" placeholder="" name="praise2" value="{$info['praise2']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">跳转链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" class="form-control span7" placeholder="" name="link1" value="{$info['link1']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">40~70分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope31" class="form-control span7" placeholder="" name="score_scope31" value="{$info['score_scope31']}">
		        </div>
		        
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope32" class="form-control span7" placeholder="" name="score_scope32" value="{$info['score_scope32']}">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise3" class="form-control span7" placeholder="" name="praise3" value="{$info['praise3']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">跳转链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" class="form-control span7" placeholder="" name="link2" value="{$info['link2']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">70~99分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope41" class="form-control span7" placeholder="" name="score_scope41" value="{$info['score_scope41']}">
		        </div>
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope42" class="form-control span7" placeholder="" name="score_scope42" value="{$info['score_scope42']}">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise4" class="form-control span7" name="praise4" value="{$info['praise4']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">跳转链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" class="form-control span7" placeholder="" name="link3" value="{$info['link3']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">100分提示信息</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope51" class="form-control span7" name="score_scope51" value="{$info['score_scope51']}">
		        </div>
		    </div>

		    <div class="form-group">
		   		<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="score_scope52" class="form-control span7" name="score_scope52" value="{$info['score_scope52']}">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖励信息</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="praise5" class="form-control span7" placeholder="" name="praise5" value="{$info['praise5']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">跳转链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" class="form-control span7" name="link4" value="{$info['link4']}">
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">图文引导链接</label>
		        <div class="col-sm-9 col-xs-12">
			        <input type="text" id="text_url" class="form-control span7" placeholder="" name="text_url" value="{$info['text_url']}">
		        </div>

		    </div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">底部广告</label>
				<div class="col-sm-9">
					{php echo tpl_form_field_image('adv',$info['adv']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">底部链接</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" id="adv_link" class="form-control span7" placeholder="" name="adv_link" value="{$info['adv_link']}">
				</div>
			</div>			
			 <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享标题：</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="share_title" class="form-control span7" placeholder="" name="share_title" value="{$info['share_title']}">
		        </div>
		        </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享图标：</label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('share_icon',$info['share_icon']);}
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享描述：</label>
		        <div class="col-sm-9 col-xs-12">
			        <textarea style="height: 60px;" name="share_content" class="form-control span7" cols="60">{$info['share_content']}</textarea>
		        </div>
		    </div>
		<!--	<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">奖品设置</label>
				<div class="col-sm-9">
					<textarea id="remark1" name="prize" class="form-control">
					{$info['prize']} 
					</textarea> 
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">规则设置</label>
				<div class="col-sm-9">
					<textarea id="remark2" name="rule" class="form-control">
					{$info['rule']} 
					</textarea> 
				</div>
			</div>-->
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-4">
				<input type="hidden" name="token" value="{$_W['token']}" />
				<input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
					
				</div>
			</div>
			
			</div>
		</div>
	</form>
	<script>
require(['jquery','util'], function($, util){
	$(function(){
 		var editor = util.editor($('#remark1')[0]);
 		var editor = util.editor($('#remark2')[0]);
	});
});
</script>
{template 'common/footer'}
